﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class SNPC
    {
        enum StoreType
        {
            武器NPC,
            材料NPC,
            食物NPC
        }
        class StoreNPC : NPC
        {
            private StoreType type2;
            private string storeInfo;

            public override void SayHello()
            {
                Console.WriteLine("邪恶如同灯光下的阴影，即使看不见也会存在");
                Console.WriteLine("我叫：{0}，我是{1}中的{2}，商品：{3}", base.Name, base.NpcType, this.type2, this.storeInfo);
            }

            public StoreType Type2
            {
                get { return this.type2; }
                set { this.type2 = value; }
            }
            public string StoreInfo
            {
                get { return this.storeInfo; }
                set { this.storeInfo = value; }
            }
            public StoreNPC() { }

            public StoreNPC(string name, NPCtype npctype, StoreType type2, string storeInfo) : base(name, npctype)
            {
                this.storeInfo = storeInfo;
                this.type2 = type2;
            }
        }
    }
}
